package cn.nie.cn.nie.controller;


import cn.nie.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.IOException;

@Controller
public class IndexController {

    @Autowired
    private IndexService indexService;

    @RequestMapping("/flashIndex.do")
    public String flashConnection(Model model) throws IOException {

        indexService.flashIndex();

        return "success";
    }
}
